package com.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.domain.po.Product;
import com.domain.po.ProductCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author 17645
 * @date 2024/06/16
 */
@Mapper
public interface ProductMapper extends BaseMapper<Product> {


    @Select("select p.product_id\n" +
            "from product as p,\n" +
            "     product_detalis as pd\n" +
            "where p.product_details_id = pd.product_details_id\n" +
            "  and pd.create_user_Id = #{userId}")
    List<Long> selectByUserId(Long userId);
}
